package com.frejoys.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.frejoys.dao.entity.PlatformWallet;

public interface PlatformWalletService extends IService<PlatformWallet> {

    default PlatformWallet getOnly(QueryWrapper<PlatformWallet> wrapper) {
        wrapper.last("limit 1");
        return this.getOne(wrapper);
    }

    default PlatformWallet getOnly(LambdaQueryWrapper<PlatformWallet> wrapper) {
        wrapper.last("limit 1");
        return this.getOne(wrapper);
    }

}
